#ifndef __DRIVER_RGB_H
#define __DRIVER_RGB_H

#include "bsp.h"
#include "control.h"

#define LED_R	PCout(14)
#define LED_G 	PCout(15)
#define LED_B 	PCout(13)


#define LED_LIST 22
#define LED_SLOW 20
#define LED_NORMAL 4
#define LED_FAST 1

enum{
	LED_DISWORK=0,
	LED_WORK_RED,
	LED_WORK_GREEN,
	LED_WORK_YELLOW,
	LED_WORK_BLUE,
	LED_WORK_PINK,
	LED_WORK_CYAN,
	LED_WORK_WHITE
};

enum{
	LED_ENABLE=0,
	LED_DISABLE	
};

typedef struct {
	uint16_t colour;
	uint16_t frequency;
} LedStruct_t;

void ledUpdateTask(uint16_t commandState);
void rgbLedConfig(void);

#endif
